<table class="form_table" cellpadding="0" cellspacing="0" style="border-top: 0px;">
  <caption style="border-bottom: 0px;">
    <%= "#{Student.human_name}" %>
  </caption>
  <tr>
    <th><%= "#{Student.human_attribute_name(:registration_code)}" %></th>
    <th><%= "#{Student.human_attribute_name(:admission_date)}" %></th>
    <th><%= "#{Person.human_attribute_name(:full_name)}" %></th>
    <th></th>
    <th></th>
    <th></th>
  </tr>
  <% @students.each do |student| %>
    <tr class="<%= cycle('odd', 'even') %>">
      <td class="<%= current_cycle %>"><%= student.registration_code %></td>
      <td class="<%= current_cycle %>"><%= l(student.admission_date.to_date, :format => 'short') %></td>
      <td class="<%= current_cycle %>"><%= student.person.reverse_full_name %></td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:show), student %> ]</td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:edit), edit_student_path(student) %> ]</td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:delete), student, :confirm => t(:prompt_delete_x, :x => student.registration_code), :method => :delete %> ]</td>
    </tr>
  <% end %>
</table>